package com.ctshk.rpc.system.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 集散地點
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-03-10
 */
@Data
@ApiModel(value="DispatchOrderRuleSaveReq对象", description="集散地點")
public class DispatchOrderRuleSaveReq implements Serializable {

    private static final long serialVersionUID = 1307081289968419617L;

    @ApiModelProperty(value = "id")
    private Long id;

    @NotNull(message = "派单名称不能为空")
    @ApiModelProperty(value = "派单名称")
    private String name;

    @NotNull(message = "业务类型不能为空")
    @ApiModelProperty(value = "业务类型")
    private Integer businessTypeId;

    @NotEmpty(message = "公司类型不能为空")
    @ApiModelProperty(value = "公司类型")
    private String companyType;

    @NotNull(message = "推送短信不能为空")
    @Range(min = 0,max = 1,message = "推送短信值不正确(1:是,0:否)")
    @ApiModelProperty(value = "推送短信(1:是,0:否)")
    private Integer pushSms;

    @NotNull(message = "推送邮件不能为空")
    @Range(min = 0,max = 1,message = "推送邮件值不正确(1:是,0:否)")
    @ApiModelProperty(value = "推送邮件(1:是,0:否)")
    private Integer pushEmail;

    @NotNull(message = "推送站内消息不能为空")
    @Range(min = 0,max = 1,message = "推送站内消息值不正确(1:是,0:否)")
    @ApiModelProperty(value = "推送站内消息(1:是,0:否)")
    private Integer pushMsg;

    @NotEmpty(message = "分配人员不能为空")
    @ApiModelProperty(value = "分配人员")
    private List<Long> userIdList;
}
